<!DOCTYPE html>
<head> 
<meta charset="utf-8"> 
 <title>菜鸟教程(runoob.com)</title> 
</head>
<body>
    <div style="position: relative; width:500px;height: 500px;background-color: red;margin-left: 50px;margin-top: 50px">
        <span style="position:absolute;left:20px;top:50px;background-color: blue;width:200px;height:200px""></span>
        <span style="position:absolute;left:20px;top:60px;background-color:green;width:200px;height:200px"></span>
    </div>
    </script>
</body>
</html>